<?php

use think\facade\Route;


//登录页面
Route::get('login','Login/login');
//注册页面
Route::get('register','Login/Register');
//发送验证码
Route::any('captcha','Login/captcha');
//注册成功
Route::post('doRegister','Login/doRegister');
//登录的路由
Route::post('add','Login/add');
//第三方登录
Route::get('home/login/qqcallback','Login/qqcallback');

//列表页面
Route::get('list','Goods/list');
//商品详情
Route::get('Item','Goods/Item');


//购物车页面
Route::get('cart','Goods/cart');
//订单详情页
Route::get('GetOrderInfo','order/GetOrderInfo');
//我的订单
Route::get('MyOrder','order/MyOrder');


Route::group(function (){
    //结算页
    Route::get('GetOrderInfo','order/GetOrderInfo');
//支付页
    Route::get('pay','Pay/pay');
//支付成功也
    Route::get('Paysuccess','Pay/Paysuccess');
});


//失败页面
Route::get('error','Error/error');